package cupk.Concrete;

import cupk.Discount;

public class ChildrenDiscount extends Discount {
    @Override
    public double calculate(double price) {
        double discountPrice = price;
        if(price >= 20){
            discountPrice = price -10;
        }
        System.out.println("儿童用户");
        return discountPrice;
    }
}
